package hoodoos.rule.script.jython;

import hoodoos.rule.api.Facts;
import org.python.core.PyObject;

public class PyFacts extends PyObject implements Facts {

  private Facts instance;

  public PyFacts(Facts record) {
    this.instance = record;
  }

  @Override
  public boolean isRefuse() {
    return instance.isRefuse();
  }

  @Override
  public void setRefuse(boolean refuse) {
    instance.setRefuse(refuse);
  }

  @Override
  public void setString(String key, String value) {
    instance.setString(key, value);
  }

  @Override
  public String getString(String key) {
    return instance.getString(key);
  }
}
